# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo05
# Description:
# Author:       98745
# Date:         2019/3/1
#-------------------------------------------------------------------------------

d={}
d['data']={}
d['n']=[]
d['p']=[]
print('请输入字典数据，key和value用逗号隔开')
ds=input(':')
l=ds.split(',')
k=[]
v=[]
for i in range(len(l)):
    if i%2==0:
        k.append(l[i])
    else:
        v.append(l[i])
d['data'].update(dict(zip(k,v)))
print('请输入姓名，多个姓名间用逗号隔开')
n=input(':')
ns=n.split()
d['n'].extend(ns)
print('请输入产品，多个产品间用逗号隔开')
p=input(':')
ps=p.split()
d['p'].extend(ps)
for k in d.keys():
    print(k,":",d[k])